using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;

using LDAP.Entity;

namespace LDAP.BLL
{
    public class BizMonthSchedule
    {
		public const string ENTITY_KEY = "MonthSchedule";
		
        public static int Add(MonthSchedule entry)
        {
            return string.IsNullOrEmpty(Common.GetMapper(ENTITY_KEY, entry).Insert("Insert_MonthSchedule", entry).ToString()) ? 0 : 1;
        }

        public static MonthSchedule GetByDate(DateTime date)
        {
            return Common.GetMapper(ENTITY_KEY, date).QueryForObject<MonthSchedule>("Select_MonthSchedule", date);
        }
    }
}

	